package com.buka.web;


import com.buka.api.DriverApi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class Controller {

    @Resource
    DriverApi driverApi;

    @RequestMapping("start")
    public String start(String uid) {
        //调用司机端的start方法
        driverApi.start(uid);
        return "start";
    }

    @RequestMapping("stop")
    public String stop(String uid) {
        //调用司机端的start方法
        return driverApi.stop(uid);
    }

}
